package com.itrip.utils.sendmessage.maisend;

//总发信息



/**注册邮箱发送邮件
 * @author Brandon
 * @date 2020-7-23 - 17:51
 */
public class RegisterMail {

    public static boolean sendMail(String code, String email) throws Exception {
        return MailSender.sendMail(
                "smtp.qq.com",
                "3369896952@qq.com",
                "gvcorukstkcvchcj",                        //授权码
                "爱旅游",
                "您的验证码：<h1>"+code+"</h1>，您正进行邮箱注册身份验证，打死不告诉别人，有效期5分钟！",
                "html",
                new String[]{email},
                null);
    }

  /*  public static void main(String[] args) throws Exception {
        sendMail("1110","3193087037@qq.com");
    }*/
}